/*
 * smart_lock.h
 *
 *  Created on: 2012-7-5
 *      Author: ThinkPad
 */

#ifndef SMART_LOCK_H_
#define SMART_LOCK_H_

#include "stdnet.h"

class smart_lock
{
public:
  smart_lock();
  ~smart_lock();

  int Lock();
  int Unlock();
private:
  BOOL m_bLocked;
  pthread_mutex_t mutex;
};

#endif /* SMART_LOCK_H_ */
